
-- $Id: AdminFrame.lua 71 2009-04-06 04:43:41Z Fylgjas $

-- ========================================================================= --
-- Copyright © 2009 Thomas ROBERT (aka Fylgjas EU - Marécage de Zangar)      --
-- ========================================================================= --
-- This file is part of FyLooter.                                            --
--                                                                           --
-- FyLooter is free software: you can redistribute it and/or modify it under --
-- the terms of the GNU General Public License as published by the Free      --
-- Software Foundation, either version 3 of the License, or (at your option) --
-- any later version.                                                        --
--                                                                           --
-- FyLooter is distributed in the hope that it will be useful, but WITHOUT   --
-- ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or     --
-- FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for  --
-- more details.                                                             --
--                                                                           --
-- You should have received a copy of the GNU General Public License along   --
-- with FyLooter. If not, see <http://www.gnu.org/licenses/>.                --
-- ========================================================================= --

local revision = tonumber(string.sub("$Rev: 71 $", 7, -3));

if (FyLooter.revision < revision) then
  FyLooter.revision = revision;
end

-- ========================================================================= --



-- ========================================================================= --

-- 
-- FyLooter:CreateAdminFrame()
--
function FyLooter:CreateAdminFrame(parent)
  -- AdminFrame
  local AdminFrame = CreateFrame("Frame", nil, parent);
  AdminFrame:Hide();
  AdminFrame:SetHeight(58);
  AdminFrame:SetBackdrop(FyLooter.db.settings.backdrop);

  -- AdminFrame.InsertButton
  AdminFrame.InsertButton = CreateFrame("Button", nil, AdminFrame, "UIPanelButtonTemplate");
  AdminFrame.InsertButton:SetWidth(80);
  AdminFrame.InsertButton:SetHeight(22);
  AdminFrame.InsertButton:SetPoint("TOPLEFT", 7, -7);
  AdminFrame.InsertButton:SetText("Insert");

  -- AdminFrame.RemoveButton
  AdminFrame.RemoveButton = CreateFrame("Button", nil, AdminFrame, "UIPanelButtonTemplate");
  AdminFrame.RemoveButton:SetWidth(80);
  AdminFrame.RemoveButton:SetHeight(22);
  AdminFrame.RemoveButton:SetPoint("BOTTOMLEFT", 7, 7);
  AdminFrame.RemoveButton:SetText("Remove");

  -- AdminFrame.UpButton
  AdminFrame.UpButton = CreateFrame("Button", nil, AdminFrame, "UIPanelButtonTemplate");
  AdminFrame.UpButton:SetWidth(80);
  AdminFrame.UpButton:SetHeight(22);
  AdminFrame.UpButton:SetPoint("TOPRIGHT", -7, -7);
  AdminFrame.UpButton:SetText("Up");

  -- AdminFrame.DownButton
  AdminFrame.DownButton = CreateFrame("Button", nil, AdminFrame, "UIPanelButtonTemplate");
  AdminFrame.DownButton:SetWidth(80);
  AdminFrame.DownButton:SetHeight(22);
  AdminFrame.DownButton:SetPoint("BOTTOMRIGHT", -7, 7);
  AdminFrame.DownButton:SetText("Down");
  AdminFrame.DownButton:SetScript("OnClick", _move_down);

  return AdminFrame;
end

-- ========================================================================= --


